package com.charlotte.gupao.study.consumer;

import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;

/**
 * @author junjie.ding
 * @date 2020/11/4 17:00
 * @description TODO
 */
@Component
public class SimpleConsumer {

    @KafkaListener(topics = "springboot-topic",groupId = "springboot-topic-group")
    public void onMessage(String msg){
        System.out.println("----消费者收到消息："+msg+"----");
    }
}
